execute as @p at @s if data entity @s Inventory[{id:"minecraft:written_book",tag:{title:"Explorer's Book"}}] run 

give @s minecraft:villager_spawn_egg{display:{Name:'[{"text":"

Cook

"}]'},EntityTag:{id:villager,VillagerData:{
profession:butcher,
level:99,
type:plains},
CustomName:"\"

Cook

\"",
Tags:["SKYWIZA","LOTW-ally"],
Offers:{Recipes:[





{buy:{
id:bowl,Count:1}
,

buyB:{
id:air,Count:1}
,

sell:{
id:iron_nugget,Count:2,
tag:{display:{Name:"{\"text\":\"Silver Nugget\"}",
Lore:["{\"text\":\"--------------------\"}",
"{\"text\":\"- The currency of SKYWIZA\"}",
"{\"text\":\"- 64 silver nugget can exchange to 1 crystal nuggets\"}",
"{\"text\":\"--------------------\"}"]}}}
,rewardExp:0b,maxUses:9999999},






{buy:{
id:iron_nugget,Count:25,
tag:{display:{Name:"{\"text\":\"Silver Nugget\"}",
Lore:["{\"text\":\"--------------------\"}",
"{\"text\":\"- The currency of SKYWIZA\"}",
"{\"text\":\"- 64 silver nugget can exchange to 1 crystal nuggets\"}",
"{\"text\":\"--------------------\"}"]}}}
,

buyB:{
id:air,Count:1}
,

sell:{
id:mushroom_stew,Count:1
,rewardExp:0b,maxUses:9999999}},





{buy:{
id:iron_nugget,Count:35,
tag:{display:{Name:"{\"text\":\"Silver Nugget\"}",
Lore:["{\"text\":\"--------------------\"}",
"{\"text\":\"- The currency of SKYWIZA\"}",
"{\"text\":\"- 64 silver nugget can exchange to 1 crystal nuggets\"}",
"{\"text\":\"--------------------\"}"]}}}
,

buyB:{
id:air,Count:1}
,

sell:{
id:beetroot_soup,Count:1
,rewardExp:0b,maxUses:9999999}},





{buy:{
id:prismarine_crystals,Count:1,
tag:{display:{Name:"{\"text\":\"Crystal Nuggets\"}",
Lore:["{\"text\":\"--------------------\"}",
"{\"text\":\"- The currency of SKYWIZA\"}",
"{\"text\":\"- 1 crystal nuggets can exchange to 64 silver nugget\"}",
"{\"text\":\"- 1 crystal nuggets can exchange to 1 emerald\"}",
"{\"text\":\"- 64 crystal nuggets can exchange to 1 white crystal\"}",
"{\"text\":\"--------------------\"}"]}}}
,

buyB:{
id:iron_nugget,Count:10,
tag:{display:{Name:"{\"text\":\"Silver Nugget\"}",
Lore:["{\"text\":\"--------------------\"}",
"{\"text\":\"- The currency of SKYWIZA\"}",
"{\"text\":\"- 64 silver nugget can exchange to 1 crystal nuggets\"}",
"{\"text\":\"--------------------\"}"]}}}
,

sell:{
id:rabbit_stew,Count:1
,rewardExp:0b,maxUses:9999999}},





{buy:{
id:iron_nugget,Count:7,
tag:{display:{Name:"{\"text\":\"Silver Nugget\"}",
Lore:["{\"text\":\"--------------------\"}",
"{\"text\":\"- The currency of SKYWIZA\"}",
"{\"text\":\"- 64 silver nugget can exchange to 1 crystal nuggets\"}",
"{\"text\":\"--------------------\"}"]}}}
,

buyB:{
id:air,Count:1}
,

sell:{
id:cooked_chicken,Count:1
,rewardExp:0b,maxUses:9999999}},





{buy:{
id:iron_nugget,Count:12,
tag:{display:{Name:"{\"text\":\"Silver Nugget\"}",
Lore:["{\"text\":\"--------------------\"}",
"{\"text\":\"- The currency of SKYWIZA\"}",
"{\"text\":\"- 64 silver nugget can exchange to 1 crystal nuggets\"}",
"{\"text\":\"--------------------\"}"]}}}
,

buyB:{
id:air,Count:1}
,

sell:{
id:cooked_porkchop,Count:1
,rewardExp:0b,maxUses:9999999}},





{buy:{
id:iron_nugget,Count:9,
tag:{display:{Name:"{\"text\":\"Silver Nugget\"}",
Lore:["{\"text\":\"--------------------\"}",
"{\"text\":\"- The currency of SKYWIZA\"}",
"{\"text\":\"- 64 silver nugget can exchange to 1 crystal nuggets\"}",
"{\"text\":\"--------------------\"}"]}}}
,

buyB:{
id:air,Count:1}
,

sell:{
id:cooked_beef,Count:1
,rewardExp:0b,maxUses:9999999}},





{buy:{
id:iron_nugget,Count:12,
tag:{display:{Name:"{\"text\":\"Silver Nugget\"}",
Lore:["{\"text\":\"--------------------\"}",
"{\"text\":\"- The currency of SKYWIZA\"}",
"{\"text\":\"- 64 silver nugget can exchange to 1 crystal nuggets\"}",
"{\"text\":\"--------------------\"}"]}}}
,

buyB:{
id:air,Count:1}
,

sell:{
id:cooked_mutton,Count:1
,rewardExp:0b,maxUses:9999999}},





{buy:{
id:iron_nugget,Count:20,
tag:{display:{Name:"{\"text\":\"Silver Nugget\"}",
Lore:["{\"text\":\"--------------------\"}",
"{\"text\":\"- The currency of SKYWIZA\"}",
"{\"text\":\"- 64 silver nugget can exchange to 1 crystal nuggets\"}",
"{\"text\":\"--------------------\"}"]}}}
,

buyB:{
id:air,Count:1}
,

sell:{
id:cooked_rabbit,Count:1
,rewardExp:0b,maxUses:9999999}},





{buy:{
id:iron_nugget,Count:6,
tag:{display:{Name:"{\"text\":\"Silver Nugget\"}",
Lore:["{\"text\":\"--------------------\"}",
"{\"text\":\"- The currency of SKYWIZA\"}",
"{\"text\":\"- 64 silver nugget can exchange to 1 crystal nuggets\"}",
"{\"text\":\"--------------------\"}"]}}}
,

buyB:{
id:air,Count:1}
,

sell:{
id:cooked_cod,Count:1
,rewardExp:0b,maxUses:9999999}},





{buy:{
id:iron_nugget,Count:12,
tag:{display:{Name:"{\"text\":\"Silver Nugget\"}",
Lore:["{\"text\":\"--------------------\"}",
"{\"text\":\"- The currency of SKYWIZA\"}",
"{\"text\":\"- 64 silver nugget can exchange to 1 crystal nuggets\"}",
"{\"text\":\"--------------------\"}"]}}}
,

buyB:{
id:air,Count:1}
,

sell:{
id:cooked_salmon,Count:1
,rewardExp:0b,maxUses:9999999}}











]},Invulnerable:1b,DeathLootTable:"minecraft:empty",
ArmorItems:[{},{},{},{id:"rabbit_stew",Count:1b}]}}